package com.hlhj.carview.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.hlhj.carview.R
import com.hlhj.carview.bean.MyAskListBean

/**
 *NeverMore
 *2020/9/10
 **/
class MyAskListAdp(private val datas:ArrayList<MyAskListBean.Data>)
    :BaseQuickAdapter<MyAskListBean.Data,BaseViewHolder>(R.layout.myitemask_item,datas) {
    override fun convert(helper: BaseViewHolder?, item: MyAskListBean.Data?) {
        helper?.setText(R.id.itemName,item?.name)
        helper?.setText(R.id.itemLevel,"卡车级别要求：${item?.level}")
        helper?.setText(R.id.itemFrom,item?.loc)
    }
}